473,473 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Displaying Lists Inline with Image Seperators?

I am presently trying to display a list of items INLINE using an image as a
seperator..... and having difficulties....

See below for 3 seperate sets of html and css files. Each set does something
different. Ideally I would like the result of Menu 1 but instead of having
the pipe effect border on the right of each choice I would like to replace
that with an image of some sort.

Any help much appreciated.

------

Menu 1 (this has a pipe effect seperator that is controlled by a border
property) - This is how I would like to have it display but with an image as
a seperator

[html]
<ul class="menu1">
<li class="first">Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>

[css]
ul.menu1 {
margin-left: 0px;
display: inline;
}

ul.menu1 li {
padding-right:3px;
padding-left:5px;
border-left: 1px solid #666666;
display: inline;
}
ul.menu1 li.first{
border-left: none;
display: inline;
}

-------------------

Menu 2 (this displays the list with images but they are not INLINE)

[html]
<ul class="menu2">
<li class="first">Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>

[css]
ul.menu2 {
margin-left: 0px;
}

ul.menu2 li {
padding-right:3px;
padding-left:5px;
list-style-type: none;
list-style-image: url(bullet.gif);
list-style-position: inside;

}
ul.menu2 li.first {
list-style-image: none;
}
-------------------
Menu 3 (this displays the list INLINE but does not display the image)

[html]
<ul class="menu3">
<li class="first">Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
[css]
ul.menu3 {
margin-left: 0px;
}

ul.menu3 li {
padding-right:3px;
padding-left:5px;
list-style-type: none;
list-style-image: url(bullet.gif);
list-style-position: inside;
display: inline;
}
ul.menu3 li.first {
list-style-image: none;
}
ul.menu2 li.first {
list-style-image: none;
}
-------------------

Desigan Chinniah
ch******@cyberdees.net
Jul 20 '05 #1
1 6073
Desigan Chinniah wrote:
I am presently trying to display a list of items INLINE using an image as
a seperator..... and having difficulties....

[snip]

Use a background image and sufficient padding on one of the sides.
--
Jim Dabell

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
46
by: DJ WIce | last post by:
Hi all, I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html It works nice in MSIE, but on Netscape (and probable...
14
by: Filippo Giarratano | last post by:
Hi -- I'm trying to figure out how to make a photo thumbnail gallery page using CSS and no tables that (1) has a caption below each image and (2) is centered -- so that as browser width changes the...
2
by: George | last post by:
My program is supposed to draw lines given from certain vertices that are given to me. the colors from the lines are also defined. It should display on a black screen. I am not sure how to do this...
20
by: Peter E. Granger | last post by:
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it...
6
by: mno | last post by:
Hi all, I have a problem that I've been stuck with for the last couple of days that's driving me a bit more than crazy at this point. Sorry if this message is not very clear. I have a design...
3
by: James | last post by:
I'm having trouble trying to put 3 definition lists into a unordered list which has been styled to appear horizontally. My goal is to have the 3 definition lists appear side by side and fill the...
48
by: coool | last post by:
Hi I'm now trying to have a dependent lists in a form my form is a query based form i.e. I fill my MySQL query from this form I have around 30 fields/columns
5
by: Roy Smith | last post by:
Be kind to me, I'm a CSS newbie... I've been playing with drupal, building a web site (hyc-test.org). I started with the "sky" theme, but didn't like the way it rendered list items in menus. ...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.